package cn.uin.types.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Getter
public enum ResponseCode {

    SUCCESS("0000", "成功"),
    UN_ERROR("0001", "未知失败"),
    ILLEGAL_PARAMETER("0002", "非法参数"),
    SQL("0003", "数据库异常！"),

    /** A开头为认证授权类异常信息（Auth） */
    A0001("A0001", "当前用户已存在"),
    A0003("A0003", "密码长度不得少于8位"),
    A0004("A0004", "token失效或有误"),
    A0005("A0005", "手机验证码有误"),
    A0006("A0006", "邮箱验证码有误"),
    A0007("A0007", "当前邮箱地址已存在绑定"),
    A0008("A0008", "当前手机号已存在绑定"),
    A0009("A0009", "当前用户不存在"),
    A0010("A0010", "当前邮箱未绑定"),


    /** C开头为公共异常信息（Auth） */
    C0001("C0001", "发送频率过快,请稍后重试"),
    C0002("C0002", "请求参数缺失"),
    C0003("C0003", "发送短信失败"),
    C0004("C0004", "发送邮箱失败"),

    ;

    private String code;
    private String info;

}
